home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 8: LINUX Games
/
Linux Cubed Series 8 - LINUX Games.iso
/
games
/
x11
/
strategy
/
xvmahjon.por
/
xvmahjon
/
xvmahjongg
/
image-stuff
/
Img-mk-swap
< prev
next >
Wrap
Text File
|
1991-09-26
|
472b
|
29 lines
#! /bin/sh
#
# 9/21/91 - skt
if test ! -f images/color/0
then
echo "You need to create images/color/* first"
exit 1
fi
if test ! -d images/swap
then
if mkdir images/swap
then
: ok
else
echo "Error, couldn't make directory images/swap"
exit 1
fi
fi
# To avoid problems when symbolic links are used, directory
# changes are avoided below.
for f in `ls images/color`
do
sed 's/0x\(..\)\(..\)/0x\2\1/g' images/color/$f > images/swap/$f
done